package org.packtracker.client;

import java.util.Date;
import java.util.List;

import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * The async counterpart of <code>PersistenceService</code>.
 */
public interface PersistenceServiceAsync {
	void readPackages(boolean filter, AsyncCallback<List<Package>> callback);

	void addPackage(String trackerId, String tracker, AsyncCallback<Package> callback);

	void removePackage(Long packageId, AsyncCallback<Void> callback);

	void readLastCheckedDate(AsyncCallback<Date> callback);

	void getTrackerNames(AsyncCallback<List<String>> callback);
	
}
